x86: fix improper return value from relinquish_memory()
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 25 Mar 2010 07:40:09 +0000 (07:40 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 25 Mar 2010 07:40:09 +0000 (07:40 +0000)
While apparently only a theoretical possibility (domain_kill() has a
BUG_ON() that wasn't reported to trigger so far), I still think it is
better to have the code cleaned up.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/arch/x86/domain.c

index 17f5c83c75fd0ecfee8ee6c35e67575749a6696a..6321e56bfb38d3f06d87393f723718a2e1f3c66b 100644 (file)
@@ -1808,6 +1808,7 @@ static int relinquish_memory(
             break;
         case -EAGAIN:
         case -EINTR:
+            ret = -EAGAIN;
             page_list_add(page, list);
             set_bit(_PGT_pinned, &page->u.inuse.type_info);
             put_page(page);